//
//  HWJinXuanCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/9/4.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWJinXuanCell.h"
@interface HWJinXuanCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *icoiamgeView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgeVLayoutcon; // 高度
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *layoutwider;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *labelWide;


@end

@implementation HWJinXuanCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.icoiamgeView.layer.cornerRadius = 9*CFLScaleValue;
    self.icoiamgeView.layer.masksToBounds = YES;
    self.imgeVLayoutcon.constant = 52*CFLScaleValue;
    self.layoutwider.constant = 52*CFLScaleValue;
    self.labelWide.constant = 52*CFLScaleValue;
    self.nameLabel.textColor = RGB(136, 136, 136);
    
    
    
    
}

-(void)setModel:(HWGameListModel *)model {
    
    _model = model;
    NSURL *url = [NSURL URLWithString:model.icon];
    [self.icoiamgeView sd_setImageWithURL:url placeholderImage:nil];
    self.nameLabel.text = model.name;
    
    
  
    
}

@end
